<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="..\js\demo.js"></script>
    <script type="text/javascript">
        alert('你好，JavaScript!');

        alert(f1(2, 3));

        function f1(a, b) {
            return a + b;
        }

        var person = {
            age: 20,
            name: 'ysca',
            height: 181,
            f2: function (a, b) {
                return a + b;
            }
        };
        alert(person.age);
        alert(person.name);
        alert(person.f2(23, 34));
    </script>
</head>
<body>
yhnrhntbhrtdh
</body>
</html>